var menu = [{
  type: 'text',
  key: 'Day/Night',
  value: 'Day',
  func: false
}, {
  type: 'number',
  key: 'Depth Alarm',
  value: 20,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Output Depth',
  value: 'FORE',
  enable: false,
  func: false
}, {
  type: 'text',
  key: 'FE-8020 Select',
  value: 'No.1',
  enable: false,
  func: false
}, {
  type: 'sub',
  key: 'Sounder',
  enable: true,
  func: false
}, {
  type: 'sub',
  key: 'Display',
  enable: true
}, {
  type: 'sub',
  key: 'System',
  enable: true
}]

var Sounder = [{
  type: 'text',
  key: 'DEPTH (BELOW)',
  value: 'Transducer',
  enable: true,
  func: false
}, {
  type: 'sub',
  key: 'FE-8020 No.1',
  enable: true
}, {
  type: 'sub',
  key: 'FE-8020 No.2',
  enable: false
}, {
  type: 'text',
  key: 'PICT Advance',
  value: 'SLOW',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Auto Range',
  value: 'OFF',
  enable: true,
  func: false
}]

var Display = [{
  type: 'page',
  key: 'LOGBOOK',
  page: 'logBook',
  enable: true
}, {
  type: 'text',
  key: 'Interval',
  value: '5s',
  enable: 'true',
  func: false
}, {
  type: 'sub',
  key: 'Unit',
  enable: true
}, {
  type: 'text',
  key: 'Course',
  value: 'True',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Color',
  value: 'Amber',
  enable: true,
  func: false
}]

var System = [{
  type: 'sub',
  key: 'Range',
  enable: true
}, {
  type: 'sub',
  key: 'System Parameters',
  enable: true
}, {
  type: 'sub',
  key: 'Alert',
  enable: true
}, {
  type: 'sub',
  key: 'Ship\'s Time',
  enable: true
}, {
  type: 'text',
  key: 'Key Sound',
  value: 'OFF',
  enable: true,
  func: false
}, {
  type: 'sub',
  key: 'Information',
  enable: true
}, {
  type: 'text',
  key: 'User Reset',
  value: 'No',
  enable: true,
  func: false
}]

var FE8020No1 = [{
  type: 'number',
  key: 'Draught',
  value: 0,
  unit: 'm',
  decimal: 1,
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Manual GAIN',
  value: 5,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'AUTO GAIN',
  value: 'ON',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'AUTO GAIN ADJ',
  value: 0,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Clutter',
  value: 7,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'IR',
  value: 'OFF',
  enable: true,
  func: false
}]

var FE8020No2 = [{
  type: 'number',
  key: 'Draught',
  value: 0,
  unit: 'm',
  decimal: 1,
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Manual GAIN',
  value: 5,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'AUTO GAIN',
  value: 'OFF',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'AUTO GAIN ADJ(-10 to +10)',
  value: 0,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Clutter',
  value: 7,
  unit: '',
  decimal: 0,
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'IR',
  value: 'OFF',
  enable: true,
  func: false
}]

var Unit = [{
  type: 'text',
  key: 'Depth',
  value: 'm',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Speed',
  value: 'kn',
  enable: true,
  func: false
}]

var Range = [{
  type: 'range',
  key: 'Basic Range1',
  value: 5,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'range',
  key: 'Basic Range2',
  value: 10,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'range',
  key: 'Basic Range3',
  value: 20,
  unit: 'm',
  enable: false,
  func: false
}, {
  type: 'range',
  key: 'Basic Range4',
  value: 40,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'range',
  key: 'Basic Range5',
  value: 100,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'range',
  key: 'Basic Range6',
  value: 200,
  unit: 'm',
  enable: false,
  func: false
}, {
  type: 'range',
  key: 'Basic Range7',
  value: 400,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'range',
  key: 'Basic Range8',
  value: 800,
  unit: 'm',
  enable: true,
  func: false
}]

var SystemParameter = [{
  type: 'sub',
  key: 'No.1 Parameters',
  enable: true
}, {
  type: 'sub',
  key: 'No.2 Parameter',
  enable: false
}, {
  type: 'number',
  key: 'TX Rate',
  value: 10,
  unit: '',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Bottom Tail Display',
  value: 'OFF',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Bottom Link RNG',
  value: 'OFF',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Speed of Sounder',
  value: 1500,
  unit: 'm/s',
  enable: true,
  func: false
}]

var No1Parameters = [{
  type: 'number',
  key: 'TVG',
  value: 5,
  unit: '',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'TVG Distance',
  value: 1,
  unit: 'm',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Echo Offset',
  value: 0,
  unit: '',
  enable: true,
  func: false
}, {
  type: 'number',
  key: 'Bottom Level',
  value: 0,
  unit: '',
  enable: true,
  func: false
}]

var Alert = [{
  type: 'page',
  key: 'Active Alert List',
  page: 'active-alert',
  enable: true
}, {
  type: 'page',
  key: 'Alert Log',
  page: 'alert-log',
  enable: true
}, {
  type: 'text',
  key: 'Bottom Lost',
  value: 'ON',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'GPS Lost',
  value: 'ON',
  enable: true,
  func: false
}]

var ShipTime = [{
  type: 'sub',
  key: 'External',
  enable: true
}, {
  type: 'sub',
  key: 'Internal',
  enable: false
}]

var External = [{
  type: 'text',
  key: 'Time',
  value: 'Local',
  enable: true,
  func: false
}, {
  type: 'text',
  key: 'Time Difference',
  value: 'AUTO',
  enable: true,
  func: false
}, {
  type: 'zone',
  key: 'Local Zone',
  value: '+00:00',
  enable: true,
  func: false
}]

var Internal = [{
  type: 'date',
  key: 'Date',
  value: '01/01/2014',
  enable: true,
  func: false
}, {
  type: 'time',
  key: 'Time',
  value: '00:00:00',
  enable: true,
  func: false
}]

var Information = [{
  type: 'information',
  key: 'FE-8010',
  enable: true
}]

var DayNight = {
  type: 'text',
  array: ['Day', 'Night']
}

var DepthAlarm = {
  type: 'number',
  rang: [0, 2400],
  unit: 'm',
  decimal: 0
}

var OutputDepth = {
  type: 'text',
  array: ['FORE', 'AFT']
}

var Depth = {
  type: 'text',
  array: ['Transducer', 'Keel', 'Surface']
}

var PictAdvance = {
  type: 'text',
  array: ['SLOW', 'FAST']
}

var AutoRange = {
  type: 'text',
  array: ['OFF', 'ON']
}

var FE8020No1AutoGain = {
  type: 'text',
  array: ['OFF', 'ON']
}

var FE8020No1IR = {
  type: 'text',
  array: ['OFF', 'IR1', 'IR2', 'IR3']
}

var FE8020No1Draught = {
  type: 'number',
  rang: [0, 30],
  unit: 'm',
  decimal: 1
}

var FE8020No1ManualGain = {
  type: 'number',
  AFT: 5,
  FORE: 5,
  rang: [0, 9]
}

var FE8020No1AutoGainADJ = {
  type: 'number',
  AFT: 0,
  FORE: 0,
  rang: [-10, 10]
}

var FE8020No1Cultter = {
  type: 'number',
  AFT: 7,
  FORE: 7,
  rang: [0, 7]
}

var Interval = {
  type: 'text',
  array: ['5s', '1 min', '2 min']
}

var unitDepth = {
  type: 'text',
  array: ['m', 'ft']
}

var unitSpeed = {
  type: 'text',
  array: ['kn', 'MPH', 'km/h']
}

var Course = {
  type: 'text',
  array: ['True', 'Magnetic']
}

var Color = {
  type: 'text',
  array: ['Amber', 'Black', 'Blue', 'White']
}

var TXRate = {
  type: 'number',
  rang: [1, 10],
  unit: '',
  decimal: 0
}

var BottomTailDisplay = {
  type: 'text',
  array: ['OFF', 'ON']
}

var BottomLinkRng = {
  type: 'text',
  array: ['OFF', 'ON']
}

var SpeedOfSound = {
  type: 'number',
  rang: [14850, 1520],
  unit: 'm/s',
  decimal: 0
}

var BottomLost = {
  type: 'text',
  array: ['OFF', 'ON']
}

var GPSLost = {
  type: 'text',
  array: ['OFF', 'ON']
}

var KeySound = {
  type: 'text',
  array: ['OFF', 'ON']
}

var userReset = {
  type: 'text',
  array: ['YES', 'No']
}

var No1Tvg = {
  type: 'number',
  rang: [0, 9],
  unit: '',
  decimal: 0
}

var No1TvgDistance = {
  type: 'number',
  rang: [1, 100],
  unit: 'm',
  decimal: 0
}

var EchoOffset = {
  type: 'number',
  rang: [-20, 20],
  unit: '',
  decimal: 0
}

var BottomLevel = {
  type: 'number',
  rang: [-10, 10],
  unit: '',
  decial: 0
}

var ExternalTime = {
  type: 'text',
  array: ['UTC', 'Local']
}

var ExternalTimeDifference = {
  type: 'text',
  array: ['AUTO', 'Manual']
}

var ExternalZone = {
  type: 'zone',
  zone: ['-13:45', '13:45']
}

var InternalData = {
  type: 'date',
  date: ['01/01/2014', '31/12/2099']
}

var InternalTime = {
  type: 'time',
  time: ['00:00:00', '23:59:59']
}

var InfoFE8010 = {
  type: 'information'
}

var BrillianceSettint = [{
  model: 'Day',
  panel: 9,
  key: 2
}, {
  model: 'Night',
  panel: 2,
  key: 2
}]

var menuTable = {
  'menu/Day/Night': DayNight,
  'menu/Depth Alarm': DepthAlarm,
  'menu/Output Depth': OutputDepth,
  'menu/Sounder': Sounder,
  'menu/Sounder/DEPTH (BELOW)': Depth,
  'menu/Sounder/FE-8020 No.1': FE8020No1,
  'menu/Sounder/FE-8020 No.1/Draught': FE8020No1Draught,
  'menu/Sounder/FE-8020 No.1/Manual GAIN': FE8020No1ManualGain,
  'menu/Sounder/FE-8020 No.1/AUTO GAIN': FE8020No1AutoGain,
  'menu/Sounder/FE-8020 No.1/AUTO GAIN ADJ': FE8020No1AutoGainADJ,
  'menu/Sounder/FE-8020 No.1/Clutter': FE8020No1Cultter,
  'menu/Sounder/FE-8020 No.1/IR': FE8020No1IR,
  'menu/Sounder/FE-8020 No.2': FE8020No2,
  'menu/Sounder/PICT Advance': PictAdvance,
  'menu/Sounder/Auto Range': AutoRange,
  'menu/Display': Display,
  'menu/Display/Interval': Interval,
  'menu/Display/Unit/Depth': unitDepth,
  'menu/Display/Unit/Speed': unitSpeed,
  'menu/Display/Course': Course,
  'menu/Display/Color': Color,
  'menu/System': System,
  'menu/Display/Unit': Unit,
  'menu/System/Range': Range,
  'menu/System/System Parameters': SystemParameter,
  'menu/System/System Parameters/No.1 Parameters': No1Parameters,
  'menu/System/System Parameters/No.1 Parameters/TVG': No1Tvg,
  'menu/System/System Parameters/No.1 Parameters/TVG Distance': No1TvgDistance,
  'menu/System/System Parameters/No.1 Parameters/Echo Offset': EchoOffset,
  'menu/System/System Parameters/No.1 Parameters/Bottom Level': BottomLevel,
  'menu/System/System Parameters/TX Rate': TXRate,
  'menu/System/System Parameters/Bottom Tail Display': BottomTailDisplay,
  'menu/System/System Parameters/Bottom Link RNG': BottomLinkRng,
  'menu/System/System Parameters/Speed of Sounder': SpeedOfSound,
  'menu/System/Alert': Alert,
  'menu/System/Alert/Bottom Lost': BottomLost,
  'menu/System/Alert/GPS Lost': GPSLost,
  'menu/System/Ship\'s Time': ShipTime,
  'menu/System/Ship\'s Time/External': External,
  'menu/System/Ship\'s Time/External/Time': ExternalTime,
  'menu/System/Ship\'s Time/External/Time Difference': ExternalTimeDifference,
  'menu/System/Ship\'s Time/External/Local Zone': ExternalZone,
  'menu/System/Ship\'s Time/Internal': Internal,
  'menu/System/Ship\'s Time/Internal/Date': InternalData,
  'menu/System/Ship\'s Time/Internal/Time': InternalTime,
  'menu/System/Key Sound': KeySound,
  'menu/System/Information': Information,
  'menu/System/Information/FE-8010': InfoFE8010,
  'menu/System/User Reset': userReset
}

export default {
  menu,
  BrillianceSettint,
  getMenuItems (key) {
    return menuTable[key]
  }
}
